package Ejercicio3;

import javax.swing.JProgressBar;


public class Progreso3 extends Thread {
	

    public static javax.swing.JProgressBar progressBar;
   
    public Progreso3() {
    		progressBar = new JProgressBar(1, 20);
    		progressBar.setValue(0);
    	    progressBar.setStringPainted(true);

    }

    public void run() {
      
        for(int i = 1 ; i<=20; i++) {
        	progressBar.setValue(i);
            try {
                 sleep(3000);
            } catch (InterruptedException e) { }
        }
    }  
    

}
